<?php /* Smarty version 2.6.16, created on 2013-09-08 09:35:36
         compiled from ../templates/admin/state/editstate.tpl */ ?>
<?php $_smarty_tpl_vars = $this->_tpl_vars;
$this->_smarty_include(array('smarty_include_tpl_file' => $this->_tpl_vars['header_start'], 'smarty_include_vars' => array()));
$this->_tpl_vars = $_smarty_tpl_vars;
unset($_smarty_tpl_vars);
  echo '<script src="';  echo $this->_tpl_vars['siteroot'];  echo '/includes/js/admin/state.js" type="text/javascript"></script>'; ?>

<?php $_smarty_tpl_vars = $this->_tpl_vars;
$this->_smarty_include(array('smarty_include_tpl_file' => $this->_tpl_vars['header_end'], 'smarty_include_vars' => array()));
$this->_tpl_vars = $_smarty_tpl_vars;
unset($_smarty_tpl_vars);
 ?>

 <div class="contain">
 
      <?php $_smarty_tpl_vars = $this->_tpl_vars;
$this->_smarty_include(array('smarty_include_tpl_file' => $this->_tpl_vars['left_menu'], 'smarty_include_vars' => array()));
$this->_tpl_vars = $_smarty_tpl_vars;
unset($_smarty_tpl_vars);
 ?>
      
      <div class="right_contain">
        
         <div class="heading_box">Edit State</div>
         <div class="whitebox">
         <!--Message Div Start-->
         <?php if ($this->_tpl_vars['msg']): ?>
         <div class="masg_div">
           <?php echo $this->_tpl_vars['msg']; ?>

         </div>
         <?php endif; ?>
         <!--Message Div End-->
         
         <form name="frmEditState" id="frmEditState" action="" method="post">
          <input type="hidden" id="page" name="page" value="<?php echo $this->_tpl_vars['page']; ?>
" />
          <input type="hidden" id="stateId" name="stateId" value="<?php echo $this->_tpl_vars['stateDetArray']['state_id']; ?>
" />
         <div style="min-height:250px;">
          <!--Form Contain start-->
           
           <div class="form_fieldbox">
             <dl>
              <dt>Select Country:<span class="error">*</span></dt>
              <dd><select name="country" id="country" class="select">
              
              <?php unset($this->_sections['i']);
$this->_sections['i']['name'] = 'i';
$this->_sections['i']['loop'] = is_array($_loop=$this->_tpl_vars['countryArray']) ? count($_loop) : max(0, (int)$_loop); unset($_loop);
$this->_sections['i']['show'] = true;
$this->_sections['i']['max'] = $this->_sections['i']['loop'];
$this->_sections['i']['step'] = 1;
$this->_sections['i']['start'] = $this->_sections['i']['step'] > 0 ? 0 : $this->_sections['i']['loop']-1;
if ($this->_sections['i']['show']) {
    $this->_sections['i']['total'] = $this->_sections['i']['loop'];
    if ($this->_sections['i']['total'] == 0)
        $this->_sections['i']['show'] = false;
} else
    $this->_sections['i']['total'] = 0;
if ($this->_sections['i']['show']):

            for ($this->_sections['i']['index'] = $this->_sections['i']['start'], $this->_sections['i']['iteration'] = 1;
                 $this->_sections['i']['iteration'] <= $this->_sections['i']['total'];
                 $this->_sections['i']['index'] += $this->_sections['i']['step'], $this->_sections['i']['iteration']++):
$this->_sections['i']['rownum'] = $this->_sections['i']['iteration'];
$this->_sections['i']['index_prev'] = $this->_sections['i']['index'] - $this->_sections['i']['step'];
$this->_sections['i']['index_next'] = $this->_sections['i']['index'] + $this->_sections['i']['step'];
$this->_sections['i']['first']      = ($this->_sections['i']['iteration'] == 1);
$this->_sections['i']['last']       = ($this->_sections['i']['iteration'] == $this->_sections['i']['total']);
?>
              <option value="<?php echo $this->_tpl_vars['countryArray'][$this->_sections['i']['index']]['country_id']; ?>
"<?php if ($this->_tpl_vars['countryArray'][$this->_sections['i']['index']]['country_id'] == $this->_tpl_vars['stateDetArray']['country_id']): ?> selected="selected"<?php endif; ?>><?php echo $this->_tpl_vars['countryArray'][$this->_sections['i']['index']]['country_name']; ?>
</option>
              <?php endfor; endif; ?>
              </select></dd>
              <div class="clear"></div>
             </dl>
             <dl>
              <dt>State Name:<span class="error">*</span></dt>
              <dd><input type="text" class="input" name="statename" id="statename" value="<?php echo $this->_tpl_vars['stateDetArray']['state_name']; ?>
" maxlength="30"/></dd>
              <div class="clear"></div>
             </dl>
             <dl>
              <dt>State ISO Code:<span class="error">*</span></dt>
              <dd><input type="text" class="input" name="siso_code" id="siso_code" value="<?php echo $this->_tpl_vars['stateDetArray']['iso1_code']; ?>
" maxlength="6" /></dd>
              <div class="clear"></div>
             </dl>
             
              <dt>&nbsp;</dt>
            
              <div class="clear"></div>
             </dl>
            </div>
            
            <!--Form Contain end--> 
          
           <!--Button here start-->
           <div>
            <span><input type="submit" class="admin_btn" value="Submit" name="editstate_btn" id="editstate_btn" /></span>
            <span><input type="button" class="admin_btn" value="Cancel" onclick="window.location='<?php echo $this->_tpl_vars['siteroot']; ?>
/admin/home.php?q=state&page=<?php echo $_GET['page']; ?>
';"/></span>
           </div>
            <!--Button here end-->
  
         </div>
         </form>
         
         </div>
        </div>
      
      
      <!--right_contain end-->
      <div class="clear"></div>
    </div>
    
<?php $_smarty_tpl_vars = $this->_tpl_vars;
$this->_smarty_include(array('smarty_include_tpl_file' => $this->_tpl_vars['footer'], 'smarty_include_vars' => array()));
$this->_tpl_vars = $_smarty_tpl_vars;
unset($_smarty_tpl_vars);
 ?>